<?php /* Smarty version 2.6.18
         compiled from search.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Zend Framework</title>
</head>
<body style="margin-left:0;margin-top:25px;">
<center>
<h4><?php echo $this->_tpl_vars['title']; ?>
</h4>
<h4>Bạn đang đăng nhâp với tài khoản : <?php echo $this->_tpl_vars['admin_fullname']; ?>
-----<i><a href="<?php echo $this->_tpl_vars['base_url']; ?>
/auth/logout">Thoát</a></i></h4>
<h3>Ket qua tim kim cua tu khoa : <?php echo $this->_tpl_vars['troi']; ?>
</h3>
<table border=1 align=center valign=top cellspacing="1" cellpadding="2">
  <tr>
  	<td>Admin_id</td>
    <td align="center"><b>Tên </b></td>
    <td align="center"><b>Miêu tả </b></td>
    <td align="center"><b>Tác giả</b></td>
    <td align="center"><b>Chức năng </b></td>
  </tr>
  
  <?php unset($this->_sections['row']);
$this->_sections['row']['name'] = 'row';
$this->_sections['row']['loop'] = is_array($_loop=$this->_tpl_vars['all_data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['row']['show'] = true;
$this->_sections['row']['max'] = $this->_sections['row']['loop'];
$this->_sections['row']['step'] = 1;
$this->_sections['row']['start'] = $this->_sections['row']['step'] > 0 ? 0 : $this->_sections['row']['loop']-1;
if ($this->_sections['row']['show']) {
    $this->_sections['row']['total'] = $this->_sections['row']['loop'];
    if ($this->_sections['row']['total'] == 0)
        $this->_sections['row']['show'] = false;
} else
    $this->_sections['row']['total'] = 0;
if ($this->_sections['row']['show']):

            for ($this->_sections['row']['index'] = $this->_sections['row']['start'], $this->_sections['row']['iteration'] = 1;
                 $this->_sections['row']['iteration'] <= $this->_sections['row']['total'];
                 $this->_sections['row']['index'] += $this->_sections['row']['step'], $this->_sections['row']['iteration']++):
$this->_sections['row']['rownum'] = $this->_sections['row']['iteration'];
$this->_sections['row']['index_prev'] = $this->_sections['row']['index'] - $this->_sections['row']['step'];
$this->_sections['row']['index_next'] = $this->_sections['row']['index'] + $this->_sections['row']['step'];
$this->_sections['row']['first']      = ($this->_sections['row']['iteration'] == 1);
$this->_sections['row']['last']       = ($this->_sections['row']['iteration'] == $this->_sections['row']['total']);
?>
  <tr>
  	<td><?php echo $this->_tpl_vars['all_data'][$this->_sections['row']['index']]['admin_id']; ?>
</td>
    <td align="center" width="150"><?php echo $this->_tpl_vars['all_data'][$this->_sections['row']['index']]['name']; ?>
</td>
    <td align="center" width="300"><?php echo $this->_tpl_vars['all_data'][$this->_sections['row']['index']]['description']; ?>
</td>
    <td align="center" width="100"><?php echo $this->_tpl_vars['all_data'][$this->_sections['row']['index']]['author']; ?>
</td>
    <td align="center" width="100"><a href="<?php echo $this->_tpl_vars['base_url']; ?>
/index/edit/id/<?php echo $this->_tpl_vars['all_data'][$this->_sections['row']['index']]['id']; ?>
">Sửa</a>---<a href="<?php echo $this->_tpl_vars['base_url']; ?>
/index/del/id/<?php echo $this->_tpl_vars['all_data'][$this->_sections['row']['index']]['id']; ?>
">Xóa</a></td>
   <?php endfor; endif; ?>
   
</table>
<h3><a href="<?php echo $this->_tpl_vars['base_url']; ?>
/index/add">Thêm mới sách</a></h3>
</center>
</body>
</html>